package com.yedean.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yedean.store.entity.Dish;
import com.yedean.store.entity.DishFlavor;

import java.util.List;
import java.util.Map;

/**
 * @author yedean
 * @date 2022/9/22
 */
public interface IDishService extends IService<Dish> {

    //新增菜品
    boolean save(Dish dish, List<DishFlavor> dishFlavorList);

    //修改菜品
    boolean update(Dish dish, List<DishFlavor> dishFlavorList);

    //根据分类信息与菜品名称查询相关数据列表
    List<Map<String,Object>> findEnableDishListInfo(String categoryId, String name);
    
    
}
